package cn.dkk.structure_design.adapter.class_adpter;

import cn.dkk.structure_design.adapter.pojo.SDCard;
import cn.dkk.structure_design.adapter.pojo.TFCardImpl;

/**
 * @author dkk
 * @date 2022/7/10
 * @desc 类适配器
 * 继承被适配的类
 * 实现目标适配接口
 * 从而可以调用父类被适配的方法,同时满足入参的类
 */
public class CDAdApterTF extends TFCardImpl implements SDCard {
    @Override
    public String SDRead() {
        return super.TFRead();
    }

    @Override
    public void SDWrite(String data) {
        super.TFWrite(data);
    }
}
